/* Created by FINAL PYTON 88 */

package pl.edu.agh.admin.gui;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JPanel;



public class UserTaskPanel extends JPanel
{
	private static final long serialVersionUID = 28;

	public UserTaskPanel(TimeAxisPanel timeAxisPanel)
	{
		setLayout(new BorderLayout());
		
		TaskPanel taskPanel = new TaskPanel();
		add(taskPanel, BorderLayout.CENTER);
		
		
		ButtonPanel buttonPanel = new ButtonPanel(taskPanel.getTaskTable());
		add(buttonPanel, BorderLayout.NORTH);
		
		
		UserPanel userPanel = new UserPanel(taskPanel.getTaskTableModel(), timeAxisPanel);
		userPanel.setPreferredSize(new Dimension(150, 300));
		add(userPanel, BorderLayout.WEST);
	}
}
